package com.example.superoa.model.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.alibaba.fastjson.JSONArray;
import com.example.superoa.model.mappers.ChaxunMapper;

@Service
@Transactional(rollbackFor=Exception.class)
public class ChaxunService {
	@Autowired
	private ChaxunMapper cm;
	
	public JSONArray cx() {
		return cm.findStaffid();
	}	
	
	public JSONArray fs() {
		return cm.findstaff();
	}
	public JSONArray fn(int staff_id) {
		return cm.findstaffname(staff_id);
	}
	public JSONArray cx_kq(int sd_id) {
		return cm.cx_kq(sd_id);
	}
	public JSONArray finddetails(int staff_id) {
		return cm.finddetails(staff_id);
	}
}
